package com.example.farmeri.data.manage;

import java.util.List;

import okhttp3.Cookie;

/**
 * Create by weiqishan on 2020/3/6.
 */
public class CookieManager {

    public static List<Cookie> cookies;

    private CookieManager(){}

    public CookieManager getInstance(){
        return this;
    }

    public static List<Cookie> getCookies(){
        return cookies;
    }

    public static void setCookies(Cookie cookie) {
        for(Cookie ck:cookies){
            if (ck.name().equals(cookie.name())){
                //ck.value() = cookie.value();
            }
        }
    }
}
